package cn.psvmc.cxzapi.mapper.ticket;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.common.SearchEntity;
import cn.psvmc.cxzapi.model.order.TOrder;
import cn.psvmc.cxzapi.model.ticket.TTicket;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 工单表 Mapper 接口
 * @Author auto
 * @Date 2024-08-12
 */
public interface TTicketMapper extends MyBaseMapper<TTicket> {

    //列表
    IPage<Map> listAll(Page<TTicket> iPage,@Param("entity") SearchEntity entity);

    //我的工单
    IPage<Map<String, Object>> listMyTicket(Page<TOrder> queryPage, @Param("entity") SearchEntity entity);
}
